/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package provagooglecode;

/**
 *
 * @author teamadm
 */
public class PrimaClasse {
  public PrimaClasse() {
    
  }
  public class PrimaInner {
    public int intero = 0;
    public int incremento = 0;
    public PrimaInner(int incremento) {
      this.incremento = incremento;
    }
    public int incrementa() {
      return intero+=incremento;
    }
  }
  
	public static void main(String[] args) {
    PrimaClasse miaPrima = new PrimaClasse();
    miaPrima.esegui();
    
  }
  
  
  public void esegui() {
    PrimaInner miaInner = new PrimaInner(5);
    System.out.println(miaInner.incrementa());
    System.out.println(miaInner.incrementa());
    System.out.println(miaInner.incrementa());
    
    miaInner = new PrimaInner(10);
    System.out.println(miaInner.incrementa());
    System.out.println(miaInner.incrementa());
    System.out.println(miaInner.incrementa());
  }
  
}
